package utils;

public class StringUtils
{
	/**
	 * @param sString
	 *            - String to check
	 * @return true - if string is empty or null false - otherwise
	 */
	public static boolean isEmpty(String sString)
	{
		return ((null == sString) || (sString.isEmpty()));
	}

	public static boolean isEmpty_DB(String sString)
	{
		return ((null == sString) || (sString.isEmpty()) || (sString.equalsIgnoreCase("null")));
	}

	/**
	 * @param sString
	 * @return 'sString' Example: string-value -> 'string-value'
	 */
	public static String wrapSingleQuote(String sString)
	{
		if (isEmpty(sString))
		{
			return "''";
		}

		return "'" + sString + "'";
	}
}
